package net.xi.news.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@ToString
@TableName(value = "t_type")
public class Type {


    @TableId(type = IdType.ASSIGN_UUID)
    private String id;


    private String name;

    @TableField(exist = false)
    private List<News> news = new ArrayList<>();


}
